package org.myspring.test;

import org.myspring.MyAnnotationConfigApplicationContext;
import org.myspring.test.config.AppConfig;
import org.myspring.test.serivce.OrderService;


public class Main {
    public static void main(String[] args) {

        // 获取
        MyAnnotationConfigApplicationContext applicationContext = new MyAnnotationConfigApplicationContext(AppConfig.class);
        OrderService orderService = (OrderService) applicationContext.getBean("orderService");
        orderService.selectOrder();
        orderService.userTest();
    }
}